<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>图片音频视频 | html5中文文档</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../md/html/lesson3.html" />
    
    
    <link rel="prev" href="../../md/html/lesson1.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="1.4"
        data-chapter-title="图片音频视频"
        data-filepath="md/html/lesson2.md"
        data-basepath="../.."
        data-revision="Fri Dec 14 2018 11:56:27 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="md/html/html.html">
            
                
                    <a href="../../md/html/html.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        html5的介绍
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="md/html/hbuilder的使用.html">
            
                
                    <a href="../../md/html/hbuilder的使用.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        开发工具的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="md/html/lesson0.html">
            
                
                    <a href="../../md/html/lesson0.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        html5的介绍和结构分析
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="md/html/lesson1.html">
            
                
                    <a href="../../md/html/lesson1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        常用标签
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="1.4" data-path="md/html/lesson2.html">
            
                
                    <a href="../../md/html/lesson2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        图片音频视频
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="md/html/lesson3.html">
            
                
                    <a href="../../md/html/lesson3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        列表表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="md/html/lesson4.html">
            
                
                    <a href="../../md/html/lesson4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        表单元素
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="md/html/lesson5.html">
            
                
                    <a href="../../md/html/lesson5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        h5新增特性
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="md/html/lesson6.html">
            
                
                    <a href="../../md/html/lesson6.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        h5新增特性
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="md/html/lesson7.html">
            
                
                    <a href="../../md/html/lesson7.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.9.</b>
                        
                        h5新增特性
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="md/echarts/lesson1.html">
            
                
                    <a href="../../md/echarts/lesson1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        echarts的介绍
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="md/echarts/lesson2.html">
            
                
                    <a href="../../md/echarts/lesson2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        echarts快速上手
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="md/echarts/lesson3.html">
            
                
                    <a href="../../md/echarts/lesson3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        echarts常用组件
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="md/echarts/lesson4.html">
            
                
                    <a href="../../md/echarts/lesson4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        echarts常用图表
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >html5中文文档</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="&#x7B2C;&#x4E09;&#x8282;&#x8BFE;">&#x7B2C;&#x4E09;&#x8282;&#x8BFE;</h1>
<h2 id="&#x94FE;&#x63A5;-a&#x6807;&#x7B7E;">&#x94FE;&#x63A5; a&#x6807;&#x7B7E;</h2>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&#x201C;URL&#x201D;</span>&gt;</span> ~ <span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
&#x8BF4;&#x660E;&#xFF1A;
href        &#x5B9A;&#x4E49;&#x94FE;&#x63A5;&#x5730;&#x5740;
title        &#x94FE;&#x63A5;&#x63D0;&#x793A;&#x4FE1;&#x606F;
target        &#x94FE;&#x63A5;&#x6253;&#x5F00;&#x65B9;&#x5F0F;(_blank &#x65B0;&#x7684;&#x7A7A;&#x767D;&#x9875;,_self  &#x5F53;&#x524D;&#x9875;,_top)

&#x5E38;&#x89C4;&#x5E94;&#x7528;&#xFF1A;
<span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&#x201C;http:</span>//<span class="hljs-attribute">www.163.com</span>&#x201D;&gt;</span>&#x5916;&#x90E8;&#x94FE;&#x63A5;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&#x201C;about.html&#x201D;</span>&gt;</span>&#x5185;&#x90E8;&#x94FE;&#x63A5; <span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>

&#x5176;&#x4ED6;&#x5E94;&#x7528;&#xFF1A;
<span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&#x201C;mailto:&#x90AE;&#x7BB1;&#x5730;&#x5740;&#x201D;</span>&gt;</span>&#x90AE;&#x4EF6;&#x94FE;&#x63A5;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&#x201C;tel:&#x7535;&#x8BDD;&#x53F7;&#x7801;&#x201D;</span>&gt;</span>&#x4E00;&#x952E;&#x62E8;&#x6253;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;sms:139xxxxxxx&quot;</span>&gt;</span>&#x4E00;&#x952E;&#x53D1;&#x9001;&#x77ED;&#x4FE1;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>

href&#x94FE;&#x63A5;&#x7684;&#x5730;&#x5740;&#x53EF;&#x4EE5;&#x662F;&#x7EDD;&#x5BF9;&#x5730;&#x5740;&#x4E5F;&#x53EF;&#x4EE5;&#x662F;&#x76F8;&#x5BF9;&#x5730;&#x5740;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x662F;&#x9875;&#x9762;&#x6587;&#x6863;&#x7684;&#x67D0;&#x4E2A;&#x90E8;&#x5206;

&#x7EDD;&#x5BF9;&#x5730;&#x5740;
<span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&#x201C;http:</span>//<span class="hljs-attribute">www.163.com</span>&#x201D;&gt;</span>&#x5916;&#x90E8;&#x94FE;&#x63A5;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>

&#x76F8;&#x5BF9;&#x5730;&#x5740;
<span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&#x201C;about.html&#x201D;</span>&gt;</span>&#x5185;&#x90E8;&#x94FE;&#x63A5; <span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>

&#x951A;&#x70B9;&#x2014;&#x2014;&#x2014;&#x2014;&#x2014;&#x2014;&#x9875;&#x9762;&#x6587;&#x6863;&#x7684;&#x67D0;&#x4E2A;&#x90E8;&#x5206;
<span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&#x201C;#bgg&#x201D;</span>&gt;</span>&#x5185;&#x90E8;&#x94FE;&#x63A5; <span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">name</span>=<span class="hljs-value">&#x201C;bgg&#x201D;</span>&gt;</span>&#x5185;&#x90E8;&#x94FE;&#x63A5; <span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>&#x6216;&#x8005;<span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">id</span>=<span class="hljs-value">&#x201C;bgg&#x201D;</span>&gt;</span>&#x5185;&#x90E8;&#x94FE;&#x63A5; <span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
&#x6CE8;&#x610F;id&#x662F;&#x552F;&#x4E00;&#x7684;&#x3002;
</code></pre>
<h2 id="&#x56FE;&#x50CF;img&#x5143;&#x7D20;">&#x56FE;&#x50CF;img&#x5143;&#x7D20;</h2>
<p>HTML Image &#x5143;&#x7D20;&#xFF08; &lt;img&gt; &#xFF09;&#x4EE3;&#x8868;&#x6587;&#x6863;&#x4E2D;&#x7684;&#x4E00;&#x4E2A;&#x56FE;&#x50CF;&#x3002;</p>
<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;meta charset=&quot;UTF-8&quot;&gt;
        &lt;title&gt;&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;img src=&quot;img/timg.jpg&quot; alt=&quot;&#x52A0;&#x8F7D;&#x4E0D;&#x6210;&#x529F;&quot; width=&quot;240&quot; height=&quot;160&quot;/&gt;
    &lt;/body&gt;
&lt;/html&gt;

&#x8BF4;&#x660E;&#xFF1A;
src            &#x56FE;&#x7247;&#x6E90;&#x5730;&#x5740;
alt            &#x52A0;&#x8F7D;&#x4E0D;&#x6210;&#x529F;&#x663E;&#x793A;&#x7684;&#x5185;&#x5BB9;
width          &#x56FE;&#x7247;&#x7684;&#x5BBD;&#x5EA6;
height         &#x56FE;&#x7247;&#x7684;&#x9AD8;&#x5EA6;
</code></pre><p>&#x6D4F;&#x89C8;&#x5668;&#x8FD0;&#x884C;&#x6548;&#x679C;&#x5982;&#x4E0B;&#xFF1A;</p>
<p><img src="../../static/images/html/example/example12.png" alt="&#x6362;&#x884C;&#x7B26;&#x8FD0;&#x884C;&#x6548;&#x679C;"></p>
<h2 id="&#x56FE;&#x50CF;&#x70ED;&#x533A;map&#x5143;&#x7D20;&#x6269;&#x5C55;">&#x56FE;&#x50CF;&#x70ED;&#x533A;map&#x5143;&#x7D20;(&#x6269;&#x5C55;)</h2>
<p>&lt;map&gt; &#x5C5E;&#x6027; &#x4E0E; &lt;area&gt; &#x5C5E;&#x6027;&#x4E00;&#x8D77;&#x4F7F;&#x7528;&#x6765;&#x5B9A;&#x4E49;&#x4E00;&#x4E2A;&#x56FE;&#x50CF;&#x6620;&#x5C04;(&#x4E00;&#x4E2A;&#x53EF;&#x70B9;&#x51FB;&#x7684;&#x94FE;&#x63A5;&#x533A;&#x57DF;).</p>
<pre><code>&#x56FE;&#x50CF;&#x70ED;&#x533A;&#x5C31;&#x662F;&#x80FD;&#x591F;&#x901A;&#x8FC7;&#x70B9;&#x51FB;&#x56FE;&#x7247;&#x7684;&#x67D0;&#x4E00;&#x90E8;&#x5206;&#x8DF3;&#x8F6C;&#x3002;
&lt;img src=&quot;img/charector.png&quot; alt=&quot;&#x52A0;&#x8F7D;&#x4E0D;&#x6210;&#x529F;&quot; width=&quot;800&quot; usemap=&quot;#bgg&quot;/&gt;
&lt;map name=&quot;bgg&quot;&gt;
    &lt;area shape=&quot;rect&quot; coords=&quot;50 50 150 150&quot; href=&quot;http://www.baidu.com&quot; alt=&quot;&#x52A0;&#x8F7D;&#x4E0D;&#x6210;&#x529F;&quot; /&gt;
    &lt;area shape=&quot;rect&quot; coords=&quot;0 0 20 20&quot; href=&quot;http://taobao.com&quot; alt=&quot;&#x52A0;&#x8F7D;&#x4E0D;&#x6210;&#x529F;&quot; /&gt;
&lt;/map&gt;
&#x8BF4;&#x660E;:
1.&#x6709;map&#x6807;&#x7B7E;&#xFF0C;map&#x6807;&#x7B7E;&#x91CC;&#x9762;&#x6709;area&#x6807;&#x7B7E;&#xFF0C;map&#x6807;&#x7B7E;&#x53EF;&#x4EE5;&#x628A;&#x6240;&#x6709;&#x7684;area(&#x533A;&#x57DF;)&#x5305;&#x88F9;&#x8D77;&#x6765;&#x3002;
2.area(&#x533A;&#x57DF;)&#x6807;&#x7B7E;&#x8981;&#x6709;&#x5F62;&#x72B6;(shape),&#x6709;&#x5750;&#x6807;(coords),&#x94FE;&#x63A5;&#x5730;&#x5740;(href),alt
</code></pre><h1 id="&#x89C6;&#x9891;&#x7684;&#x652F;&#x6301;">&#x89C6;&#x9891;&#x7684;&#x652F;&#x6301;</h1>
<p>&#x5E26;&#x63A7;&#x5236;&#x5668;&#x7684;&#x89C6;&#x9891;&#x64AD;&#x653E;&#x5668;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">video</span> <span class="hljs-attribute">src</span>=<span class="hljs-value">&quot;movie.mp4&quot;</span> <span class="hljs-attribute">controls</span>=<span class="hljs-value">&quot;controls&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">video</span>&gt;</span>
&#x5982;&#x679C;&#x8003;&#x8651;&#x5230;&#x4E0D;&#x540C;&#x6D4F;&#x89C8;&#x5668;&#x5BF9;&#x89C6;&#x9891;&#x6587;&#x4EF6;&#x7684;&#x517C;&#x5BB9;&#x6027;

<span class="hljs-tag">&lt;<span class="hljs-title">video</span> <span class="hljs-attribute">width</span>=<span class="hljs-value">&quot;320&quot;</span> <span class="hljs-attribute">height</span>=<span class="hljs-value">&quot;240&quot;</span> <span class="hljs-attribute">controls</span>=<span class="hljs-value">&quot;controls&quot;</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-title">source</span> <span class="hljs-attribute">src</span>=<span class="hljs-value">&quot;movie.ogg&quot;</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;video/ogg&quot;</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-title">source</span> <span class="hljs-attribute">src</span>=<span class="hljs-value">&quot;movie.mp4&quot;</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;video/mp4&quot;</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>Your browser does not support the video tag.<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">video</span>&gt;</span>
</code></pre>
<p>&#x6807;&#x7B7E;&#x5E38;&#x7528;&#x5C5E;&#x6027;&#xFF1A;</p>
<table>
<thead>
<tr>
<th>&#x5C5E;&#x6027;</th>
<th>&#x503C;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>autoplay</td>
<td>autoplay</td>
<td>&#x5982;&#x679C;&#x51FA;&#x73B0;&#x8BE5;&#x5C5E;&#x6027;&#xFF0C;&#x5219;&#x89C6;&#x9891;&#x5728;&#x5C31;&#x7EEA;&#x540E;&#x9A6C;&#x4E0A;&#x64AD;&#x653E;&#x3002;</td>
</tr>
<tr>
<td>controls</td>
<td>controls</td>
<td>&#x5982;&#x679C;&#x51FA;&#x73B0;&#x8BE5;&#x5C5E;&#x6027;&#xFF0C;&#x5219;&#x5411;&#x7528;&#x6237;&#x663E;&#x793A;&#x63A7;&#x4EF6;&#xFF0C;&#x6BD4;&#x5982;&#x64AD;&#x653E;&#x6309;&#x94AE;&#x3002;</td>
</tr>
<tr>
<td>loop</td>
<td>loop</td>
<td>&#x5982;&#x679C;&#x51FA;&#x73B0;&#x8BE5;&#x5C5E;&#x6027;&#xFF0C;&#x5219;&#x5F53;&#x5A92;&#x4ECB;&#x6587;&#x4EF6;&#x5B8C;&#x6210;&#x64AD;&#x653E;&#x540E;&#x518D;&#x6B21;&#x5F00;&#x59CB;&#x64AD;&#x653E;&#x3002;</td>
</tr>
<tr>
<td>muted</td>
<td>muted</td>
<td>&#x89C4;&#x5B9A;&#x89C6;&#x9891;&#x7684;&#x97F3;&#x9891;&#x8F93;&#x51FA;&#x5E94;&#x8BE5;&#x88AB;&#x9759;&#x97F3;&#x3002;</td>
</tr>
<tr>
<td>poster</td>
<td>URL</td>
<td>&#x89C4;&#x5B9A;&#x89C6;&#x9891;&#x4E0B;&#x8F7D;&#x65F6;&#x663E;&#x793A;&#x7684;&#x56FE;&#x50CF;&#xFF0C;&#x6216;&#x8005;&#x5728;&#x7528;&#x6237;&#x70B9;&#x51FB;&#x64AD;&#x653E;&#x6309;&#x94AE;&#x524D;&#x663E;&#x793A;&#x7684;&#x56FE;&#x50CF;&#x3002;</td>
</tr>
<tr>
<td>preload</td>
<td>preload</td>
<td>&#x5982;&#x679C;&#x51FA;&#x73B0;&#x8BE5;&#x5C5E;&#x6027;&#xFF0C;&#x5219;&#x89C6;&#x9891;&#x5728;&#x9875;&#x9762;&#x52A0;&#x8F7D;&#x65F6;&#x8FDB;&#x884C;&#x52A0;&#x8F7D;&#xFF0C;&#x5E76;&#x9884;&#x5907;&#x64AD;&#x653E;&#x3002;&#x5982;&#x679C;&#x4F7F;&#x7528; &quot;autoplay&quot;&#xFF0C;&#x5219;&#x5FFD;&#x7565;&#x8BE5;&#x5C5E;&#x6027;&#x3002;</td>
</tr>
<tr>
<td>src</td>
<td>url</td>
<td>&#x8981;&#x64AD;&#x653E;&#x7684;&#x89C6;&#x9891;&#x7684; URL</td>
</tr>
<tr>
<td>width</td>
<td>pixels</td>
<td>&#x8BBE;&#x7F6E;&#x89C6;&#x9891;&#x64AD;&#x653E;&#x5668;&#x7684;&#x5BBD;&#x5EA6;&#x3002;</td>
</tr>
<tr>
<td>height</td>
<td>pixels</td>
<td>&#x8BBE;&#x7F6E;&#x89C6;&#x9891;&#x64AD;&#x653E;&#x5668;&#x7684;&#x9AD8;&#x5EA6;&#x3002;</td>
</tr>
</tbody>
</table>
<h1 id="&#x97F3;&#x9891;&#x7684;&#x652F;&#x6301;">&#x97F3;&#x9891;&#x7684;&#x652F;&#x6301;</h1>
<p>&#x5E26;&#x63A7;&#x5236;&#x5668;&#x7684;&#x97F3;&#x9891;&#x64AD;&#x653E;&#x5668;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">audio</span> <span class="hljs-attribute">src</span>=<span class="hljs-value">&quot;song.ogg&quot;</span> <span class="hljs-attribute">controls</span>=<span class="hljs-value">&quot;controls&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">audio</span>&gt;</span>
</code></pre>
<p>&#x5982;&#x679C;&#x8003;&#x8651;&#x5230;&#x4E0D;&#x540C;&#x6D4F;&#x89C8;&#x5668;&#x5BF9;&#x89C6;&#x9891;&#x6587;&#x4EF6;&#x7684;&#x517C;&#x5BB9;&#x6027;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">audio</span> <span class="hljs-attribute">width</span>=<span class="hljs-value">&quot;320&quot;</span> <span class="hljs-attribute">height</span>=<span class="hljs-value">&quot;240&quot;</span> <span class="hljs-attribute">controls</span>=<span class="hljs-value">&quot;controls&quot;</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-title">source</span> <span class="hljs-attribute">src</span>=<span class="hljs-value">&quot;song.ogg&quot;</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;audio/ogg&quot;</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-title">source</span> <span class="hljs-attribute">src</span>=<span class="hljs-value">&quot;song.mp3&quot;</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;audio/mpeg&quot;</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>Your browser does not support the audio tag.<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">audio</span> &gt;</span>
</code></pre>
<p>&#x6807;&#x7B7E;&#x5E38;&#x7528;&#x5C5E;&#x6027;&#xFF1A;</p>
<table>
<thead>
<tr>
<th>&#x5C5E;&#x6027;</th>
<th>&#x503C;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>autoplay</td>
<td>autoplay</td>
<td>&#x5982;&#x679C;&#x51FA;&#x73B0;&#x8BE5;&#x5C5E;&#x6027;&#xFF0C;&#x5219;&#x97F3;&#x9891;&#x5728;&#x5C31;&#x7EEA;&#x540E;&#x9A6C;&#x4E0A;&#x64AD;&#x653E;&#x3002;</td>
</tr>
<tr>
<td>controls</td>
<td>controls</td>
<td>&#x5982;&#x679C;&#x51FA;&#x73B0;&#x8BE5;&#x5C5E;&#x6027;&#xFF0C;&#x5219;&#x5411;&#x7528;&#x6237;&#x663E;&#x793A;&#x63A7;&#x4EF6;&#xFF0C;&#x6BD4;&#x5982;&#x64AD;&#x653E;&#x6309;&#x94AE;&#x3002;</td>
</tr>
<tr>
<td>loop</td>
<td>loop</td>
<td>&#x5982;&#x679C;&#x51FA;&#x73B0;&#x8BE5;&#x5C5E;&#x6027;&#xFF0C;&#x5219;&#x6BCF;&#x5F53;&#x97F3;&#x9891;&#x7ED3;&#x675F;&#x65F6;&#x91CD;&#x65B0;&#x5F00;&#x59CB;&#x64AD;&#x653E;&#x3002;</td>
</tr>
<tr>
<td>preload</td>
<td>preload</td>
<td>&#x5982;&#x679C;&#x51FA;&#x73B0;&#x8BE5;&#x5C5E;&#x6027;&#xFF0C;&#x5219;&#x97F3;&#x9891;&#x5728;&#x9875;&#x9762;&#x52A0;&#x8F7D;&#x65F6;&#x8FDB;&#x884C;&#x52A0;&#x8F7D;&#xFF0C;&#x5E76;&#x9884;&#x5907;&#x64AD;&#x653E;&#x3002;&#x5982;&#x679C;&#x4F7F;&#x7528; &quot;autoplay&quot;&#xFF0C;&#x5219;&#x5FFD;&#x7565;&#x8BE5;&#x5C5E;&#x6027;&#x3002;</td>
</tr>
<tr>
<td>src</td>
<td>url</td>
<td>&#x8981;&#x64AD;&#x653E;&#x7684;&#x97F3;&#x9891;&#x7684; URL</td>
</tr>
</tbody>
</table>
<h2 id="html&#x5B9E;&#x4F53;&#x5B57;&#x7B26;">HTML&#x5B9E;&#x4F53;&#x5B57;&#x7B26;</h2>
<p><img src="../../static/images/html/shitizifu.png" alt="&#x5B9E;&#x4F53;&#x5B57;&#x7B26;"></p>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../md/html/lesson1.html" class="navigation navigation-prev " aria-label="Previous page: 常用标签"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../md/html/lesson3.html" class="navigation navigation-next " aria-label="Next page: 列表表格"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
